<section class="dataset-relationships-container">
  <header>
    <h4>
      Relationships
    </h4>

    <p class="dataset-relationships__note">
      *Please note that the list below only displays datasets that are directly related to this dataset.
    </p>
    <hr class="nacho-divider">
  </header>

  <h4 class="dataset-relationships__header">
    Upstream
  </h4>

  {{#datasets/containers/dataset-lineage-upstreams urn=urn as |upstreamsContainer|}}
    {{#if upstreamsContainer.upstreams}}

      {{datasets/dataset-relationship-table relationships=upstreamsContainer.upstreams}}

    {{else}}
      <div class="dataset-relationships-not-found">
        This dataset does not have upstream relationships.
      </div>
    {{/if}}
  {{/datasets/containers/dataset-lineage-upstreams}}


  <h4 class="dataset-relationships__header">
    Downstream
  </h4>

  {{#datasets/containers/dataset-lineage-downstreams urn=urn as |downstreamsContainer|}}
    {{#if downstreamsContainer.downstreams}}

      {{datasets/dataset-relationship-table relationships=downstreamsContainer.downstreams}}

    {{else}}
      <div class="dataset-relationships-not-found">
        This dataset does not have downstream relationships.
      </div>
    {{/if}}
  {{/datasets/containers/dataset-lineage-downstreams}}

</section>